/**
 * Created by wangshaohua on 2018/1/19.
 */
moduleResource.factory("LearningMapExerciseResource", function (CambioResource, $$CambioConfig) {
    const resource = $$CambioConfig.SZ_MANAGEMENT_SYSTEM_RESOURCE_URL + "/learningMap/exercise";

    return CambioResource(resource, {}, {
        findById: {
            url: resource + "/findById/:id",
            method: 'GET'
        },
        findByCourseId: {
            url: resource + "/findByCourseId/:learningMapCourseId",
            method: 'GET'
        },
        remove: {
            url: resource + "/remove/:id",
            method: 'PUT'
        },
        quickConfig: {
            url: resource + "/quick/config",
            method: 'POST'
        },
        quickConfiyContentIds: {
            url: resource + "/quick/config/:learningMapCourseId",
            method: 'POST'
        },
        updateSort: {
            url: resource + "/updateSort",
            method: 'POST'
        }
    });
});